package com.ruoyi.oos.tag.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 测点分组对象 oos_tag_group
 * 
 * @author wzy
 * @date 2020-05-07
 */
public class TagGroup extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 父分组id */
    @Excel(name = "父分组id")
    private Long pid;

    /** 分组ids */
    @Excel(name = "分组ids")
    private String pids;

    /** 分组名称 */
    @Excel(name = "分组名称")
    private String groupname;

    /** 分组类型1：超限2：启停3：实时 */
    @Excel(name = "分组类型1：超限2：启停3：实时")
    private String type;

    /** 排序 */
    @Excel(name = "排序")
    private Long num;
    
    /**
     * 父名称
     */
    private String pname;
    

        public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
        public void setPid(Long pid)
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
        public void setPids(String pids)
    {
        this.pids = pids;
    }

    public String getPids() 
    {
        return pids;
    }
        public void setGroupname(String groupname)
    {
        this.groupname = groupname;
    }

    public String getGroupname() 
    {
        return groupname;
    }
        public void setType(String type)
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
        public void setNum(Long num)
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    
    

    public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
        
        .append("id", getId())
        
        .append("pid", getPid())
        
        .append("pids", getPids())
        
        .append("groupname", getGroupname())
        
        .append("type", getType())
        
        .append("num", getNum())
            .toString();
    }
}
